package com.hqyj.demo.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouwenjun
 * @since 2022-10-10
 */
@Getter
@Setter
  @TableName("t_menu")
@ApiModel(value = "Menu对象", description = "")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("后端请求url")
      private String url;

      @ApiModelProperty("前端路由url")
      private String path;

      @ApiModelProperty("组件")
      private String component;

      @ApiModelProperty("菜单名")
      private String name;

      @ApiModelProperty("图标")
      private String iconCls;

      @ApiModelProperty("父id")
      private Integer parentId;

      @ApiModelProperty("是否启用")
      private Integer enabled;

      @TableField(exist = false)
      private List<Menu> children;


}
